package me.lovatcat.springboot.demo.web.controller;

import io.swagger.annotations.ApiOperation;
import me.lovetcat.common.dto.RespDto;
import me.lovatcat.springboot.demo.service.IAsyncService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author acat on 2017-01-12 15:08
 */
@RestController
public class OtherTestController {

    private static final Logger LOG = LoggerFactory.getLogger(OtherTestController.class);

    @Autowired
    private IAsyncService asyncService;

    @ApiOperation(value = "测试异步调用方法")
    @GetMapping("/async")
    public RespDto async(){
        asyncService.testAsync();

        return RespDto.ok();
    }


}
